-
Notifications
You must be signed in to change notification settings - Fork 4k
External middleware in cloudflare #3254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Summary of the deployments: Version 1
Version 2
Test content |
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Fix NextRequest body being incorrect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great 👌
Hopefully at some point the whole orchestration could be better handled at a lower level by opennext itself, but this should definitely be a great improvement in perfs for us
workingDirectory: ./ | ||
wranglerVersion: '4.10.0' | ||
environment: ${{ inputs.environment }} | ||
command: versions deploy ${{ steps.extract_current_version.outputs.version_id }}@100% ${{ inputs.serverVersionId }}@0% -y --config ./packages/gitbook-v2/openNext/customWorkers/defaultWrangler.jsonc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Argh, too bad there isn't a "--no-traffic-update" flag 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this would have been very handy. This should get better in the future 🤞
Yeah this will get better, but to make it work in a more generic way, it requires a bunch of change, and not only to OpenNext |
The goal of this PR is to deploy the routing/middleware layer in its own worker.
This should make cold start for ISR/SSG route that has been generated before really fast compared to now (On par or even better than in Vercel)
It requires #3265 to be merged before release.
Will close RND-7163
What's changed
Cloudflare-Workers-Version-Overrides
headers (this requires the 2 versions to be uploaded first)Response closed due to connection limit
because the limit are shared between the workers and all its binding, especially for big pages. (This should close RND-7189)One of the downsides of this method is that changes to
routes
inwrangler.jsonc
won't work automatically. It requires runningwrangler triggers deploy
Also, we can't really test the Durable Object without deploying (DO don't work with
preview url
)